package com.xg.common.constant;

/**
 * 订单常量
 */
public class OrderConstant {

    // 订单状态 1.待支付 2.待发货 3.已发货 4.等待收货 5已完成   0.无效订单
    public enum OrderStatusEnum{
        FOR_THE_PAYMENT(1,"待付款"),
        TO_SEND_GOODS(2,"待发货"),
        HAS_BEEN_SHIPPED(3,"已发货"),
        HAS_BEEN_COMPLETED(5,"已完成"),
        CLOSE(4,"等待收货"),
        INVAILD_ORDERS(0,"无效订单")
        ;

        OrderStatusEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }

        private int code;

        private String msg;

    }


}
